package de.gameduell.framework.game.card {
	import flash.events.Event;
	import flash.events.MouseEvent;	

	/**
	 * @author dkum
	 * extends Event
	 */
	public class CardEvent extends Event {

		public static const CLICK:String      = "card"+MouseEvent.CLICK;
		public static const MOUSE_DOWN:String = "card"+MouseEvent.MOUSE_DOWN;
		public static const MOUSE_UP:String   = "card"+MouseEvent.MOUSE_UP; 
		
		private var _card:Card;

		/**
		 * Constructor extends the Event by the Pyramidcard which called it
		 * @param aCard
		 * @param type
		 * @param bubbles
		 * @param cancelable
		 */
		public function CardEvent(aCard:Card, type:String, bubbles:Boolean = false, cancelable:Boolean = false) {
			super(type, bubbles, cancelable);
			_card = aCard;
		}

		/**
		 * @return _card
		 */
		public function get card():Card {
			return _card;
		}
	}
}
